/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.ugame.security.client;

/**
 *
 * @author user
 */
public class KeyFactory {

    private static KeyFactory instance;

    public static KeyFactory getInstance() {
        if (instance == null) {
            instance = new KeyFactory();
        }
        return instance;
    }

    private KeyFactory() {
    }

    public String createSecretKey(String key, String salt) {
        return salt == null ? key + ":ugame" : key + ":ugame:" + salt;
    }
}
